import { AxiosResponse } from 'axios'
import { LoginFrom } from '@/types/views/login'
import { ResponseData } from '@/types/api/public'
import request from '@/request'


/**
 * @desc: 全部线索获取数据
 * @param { Object } 
 */
 export const getdata = (data: LoginFrom) => {
    return request({
      url: '/getcus_data',
      method: 'get',
      params:data
    })
  }

/* @desc: 线索添加
* @param { Object } 
*/
export const add_cus = (data: LoginFrom) => {
    return request({
      url: '/addcus',
      method: 'get',
      params:data
    })
  }

/* @desc: 客户修改
* @param { Object } 
*/
export const update_cus = (data: LoginFrom) => {
  return request({
    url: '/updcus',
    method: 'get',
    params:data
  })
}

  /* @desc: 跟进数据查看
* @param { Object } 
*/
export const getfollow = (data: LoginFrom) => {
  return request({
    url: '/getfollow',
    method: 'get',
    params:data
  })
}

  /* @desc: 跟进记录添加
* @param { Object } 
*/
export const add_follow = (data: LoginFrom) => {
  return request({
    url: '/addfollow',
    method: 'get',
    params:data
  })
}

  /* @desc: 释放客户
* @param { Object } 
*/
export const release_customer = (data: LoginFrom) => {
  return request({
    url: '/release_cus',
    method: 'get',
    params:data
  })
}



  /* @desc: 领取线索
* @param { Object } 
*/
export const receivecus = (data: LoginFrom) => {
  return request({
    url: '/receive_cus',
    method: 'get',
    params:data
  })
}

  /* @desc: 删除线索
* @param { Object } 
*/
export const delcus = (data: LoginFrom) => {
  return request({
    url: '/del_cus',
    method: 'get',
    params:data
  })
}